//
//  AdMoreDrawAdManager.h
//  AdMoreSDKDemo
//
//  Created by Hayder on 2023/11/16.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol AdMoreDrawAdManagerDelegate <NSObject>

@optional
/**draw广告加载成功*/
- (void)drawAdViewsLoadSuccess:(NSArray *)drawAds;
/**draw广告加载失败**/
- (void)drawAdViewsFailedToLoadWithError:(NSError *)error;

@end

@interface AdMoreDrawAdManager : NSObject

@property (nonatomic, strong,readonly) NSString *slotID;
@property (nonatomic, strong,readonly) UIViewController *rootViewController;
@property (nonatomic, assign,readonly) CGSize adSize;

@property (nonatomic, weak) id<AdMoreDrawAdManagerDelegate> delegate;

/**
 全屏
 slotID: 广告位ID
 rootViewController: 广告链接跳转的根控制器
 */
- (instancetype)initWithSlotID:(NSString *)slotID rootController:(UIViewController *)rootViewController;
/**
 加载广告的数量，最大为3
 */
- (void)loadAdDataWithCount:(NSInteger)count;

@end

NS_ASSUME_NONNULL_END
